package cj.web.login.controllers;

import net.paoding.rose.web.annotation.Param;
import net.paoding.rose.web.annotation.Path;
import net.paoding.rose.web.annotation.rest.Get;
import net.paoding.rose.web.var.Model;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

@Path("")
public class DemoController {

	protected static final Log logger = LogFactory.getLog(DemoController.class);

	@Get("login")
	public String umedit(Model model) {
		return "/views/login.vm";
	}

	@Get("generalize")
	public String generalize(Model model, @Param("mark") String mark) {
		model.add("mark", mark);
		return "/views/generalize.vm";
	}
}